﻿Public NotInheritable Class frmAbout

    Private Sub frmAbout_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ' Set the title of the form.
        Dim ApplicationTitle As String
        If My.Application.Info.Title <> "" Then
            ApplicationTitle = My.Application.Info.Title
        Else
            ApplicationTitle = System.IO.Path.GetFileNameWithoutExtension(My.Application.Info.AssemblyName)
        End If
        Me.Text = String.Format("About {0}", ApplicationTitle)
        ' Initialize all of the text displayed on the About Box.
        lblDisplayProductName.Text = My.Application.Info.ProductName
        lblDisplayProductVersion.Text = My.Application.Deployment.CurrentVersion.Major & "." & My.Application.Deployment.CurrentVersion.Minor & "." & My.Application.Deployment.CurrentVersion.Build & "." & My.Application.Deployment.CurrentVersion.Revision
        lblDisplayCopyright.Text = My.Application.Info.Copyright
        lblDisplayCompany.Text = My.Application.Info.CompanyName
    End Sub

    Private Sub btnAbout_Click(sender As Object, e As EventArgs) Handles btnAbout.Click
        tbControl.SelectedIndex = 0
    End Sub

    Private Sub btnVersion_Click(sender As Object, e As EventArgs) Handles btnVersion.Click
        tbControl.SelectedIndex = 1
    End Sub
End Class
